package com.tanhua.model.vo;

import com.tanhua.model.soul.SoulQuestions;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class QuestionVo {
    private String id;
    private String question;

    private List<OptionsVo> options;



    public static QuestionVo init(SoulQuestions soulQuestions){
        QuestionVo questionVo = new QuestionVo();
        questionVo.setId(soulQuestions.getId().toString());
        questionVo.setQuestion(soulQuestions.getQuestion());
        return questionVo;
    }
}
